home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / !macuseful.sml next >
Encoding:
Text File  |  1995-10-21  |  3.7 KB  |  108 lines  |  [TEXT/Moml]

  1. (* !macuseful.sml *)
  2. (* 21Oct95  e     *)
  3.  
  4. (* some useful command lines *)
  5. (*
  6.  * change <home> to the name of the volume or path for your mosmlFolder
  7.  
  8. :mosml.image -stdlib <home>:mosml:src:mosmllib: -P none
  9. :mosml.image -stdlib <home>:mosml:src:mosmllib: -P full
  10.  
  11. :mosmllexe :src:lex:Scanner.lex
  12. :mosmllexe :src:compiler:Lexer.lex
  13. :mosmllexe :src:toolssrc:Deplex.lex
  14.  
  15. *)
  16.  
  17. (* some useful make commands...
  18.  *
  19.  * change "testtop.image" to your image name
  20.  *  or to "mosml.image" to replace the current version; DANGEROUS!
  21.  *)
  22.  
  23. (* ********************************** *)
  24.  
  25. moolevel := 2;
  26.  
  27. (* to compile the toplevel mosml image and the lexer *)
  28.  
  29. let val base = "<home>" ^ ":mosml:src:"
  30. in
  31.   make "none" (base ^ "mosmllib") [] (base ^ "mosmllib");
  32.   make "none" (base ^ "mosmllib") [] (base ^ "compiler");
  33.   make "none" (base ^ "mosmllib") [(base ^ "compiler")] (base ^ "toolssrc");
  34.   make "none" (base ^ "mosmllib") [(base ^ "lex"),(base ^ "compiler")] (base ^ "lex")
  35. end;
  36.  
  37. (* to build the toplevel mosml image *)
  38.  
  39. let val base = "<home>" ^ ":mosml:src:"
  40. in
  41.   chDir base; chDir "::";
  42.   link "testtop.image"
  43.        (true,true) (* -g -noheader *)
  44.        "lorder" (base ^ "mosmllib") [(base ^ "compiler"),(base ^ "toolssrc")]
  45.        ["Maine.uo"]
  46. end;
  47.  
  48. (* to build the lexer *)
  49.  
  50. let val base = "<home>" ^ ":mosml:src:"
  51. in
  52.   chDir base; chDir "::";
  53.   link "mosmllex"
  54.        (true,true) (* -g -noheader *)
  55.        "lorder" (base ^ "mosmllib") [(base ^ "lex"),(base ^ "compiler")]
  56.        ["Mainlex.uo"]
  57. end;
  58.  
  59. (* another way to build the toplevel mosml image *)
  60.  
  61. let val base = "<home>" ^ ":mosml:src:"
  62. in
  63.   chDir base; chDir "::";
  64.   link "testtop.image"
  65.        (true,true) (* -g -noheader *)
  66.        "none" (base ^ "mosmllib") [(base ^ "compiler"),(base ^ "toolssrc")]
  67.  
  68.        ["List.uo", "Char.uo", "Strbase.uo", "String.uo", "BasicIO.uo",
  69.         "Vector.uo", "Misc.uo", "Array.uo", "StringCvt.uo", "Word8.uo",
  70.         "Word8Vector.uo", "CharVector.uo", "Word8Array.uo", "CharArray.uo",
  71.         "Obj.uo", "Nonstdio.uo", "Substring.uo", "Path.uo", "Time.uo",
  72.         "OS.uo", "FileSys.uo", "Lexing.uo", "Parsing.uo", "Miscsys.uo",
  73.         "Printexc.uo", "Filename.uo", "Fnlib.uo", "Sort.uo", "Stack.uo",
  74.         "Arg.uo", "Hasht.uo", "Memory.uo", "Config.uo", "Mixture.uo",
  75.         "Const.uo", "Smlexc.uo", "Prim.uo", "Instruct.uo", "Lambda.uo",
  76.         "Smlprim.uo", "Globals.uo", "Location.uo", "Units.uo", "Types.uo",
  77.         "Smlperv.uo", "Asynt.uo", "Asyntfn.uo", "Parser.uo", "Lexer.uo",
  78.         "Primdec.uo", "Infixst.uo", "Ovlres.uo", "Synchk.uo", "Infixres.uo",
  79.         "Elab.uo", "Tr_env.uo", "Pr_lam.uo", "Match.uo", "Front.uo",
  80.         "Back.uo", "Pr_zam.uo", "Opcodes.uo", "Prim_opc.uo", "Buffcode.uo",
  81.         "Labels.uo", "Code_dec.uo", "Reloc.uo", "Emitcode.uo", "Emit_phr.uo",
  82.         "Sigmtch.uo", "Crc.uo", "Compiler.uo", "Predef.uo", "Prim_c.uo",
  83.         "Symtable.uo", "Patch.uo", "Tr_const.uo", "Rtvals.uo", "Load_phr.uo",
  84.         "Exec_phr.uo", "Link.uo", "Deppars.uo", "Deplex.uo",
  85.         "Smltope.uo", "Maine.uo"]
  86. end;
  87.  
  88. (* another way to build the lexer *)
  89.  
  90. let val base = "<home>" ^ ":mosml:src:"
  91. in
  92.   chDir base; chDir "::";
  93.   link "mosmllex"
  94.        (true,true) (* -g -noheader *)
  95.        "none" (base ^ "mosmllib") [(base ^ "lex"),(base ^ "compiler")]
  96.  
  97.        ["List.uo", "Vector.uo", "Array.uo", "Char.uo", "Strbase.uo", 
  98.         "String.uo", "StringCvt.uo", "Word8.uo", "Word8Vector.uo", 
  99.         "Word8Array.uo", "CharVector.uo", "CharArray.uo", "Obj.uo", 
  100.         "BasicIO.uo", "Nonstdio.uo", "Lexing.uo", "Parsing.uo", 
  101.         "Miscsys.uo", "Printexc.uo", "Filename.uo", "Fnlib.uo", 
  102.         "Sort.uo", "Hasht.uo", "Syntax.uo", "Scan_aux.uo", 
  103.         "Gram_aux.uo", "Grammar.uo", "Scanner.uo", "Lexgen.uo", 
  104.         "Output.uo", "Mainlex.uo"]
  105. end;
  106.  
  107. (* ********************************** *)
  108.